<div class="body-content-left">	
	<?php echo  $this->element('fullcalendar',array('plugin'=>'calendar'))?>
</div>
<div class="news body-content-right">
	<h2><?php  __('News');?></h2>
	<?php		
	echo $javascript->codeBlock("
		$(document).ready(function(){
			$(\".actions a[rel^='prettyPhoto']\").prettyPhoto({animationSpeed:'slow',theme:'facebook',slideshow:8000,autoplay_slideshow:false,overlay_gallery:false});
		});		
	",$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));
	?>	
		<dt class="image">
		   	<?php $thumb = $this->Html->url('/', true).str_replace(' ',"%20",$fileUpload->image($news['NewUpload']['name'],array('autoResize'=>true,'width'=>200,'imagePathOnly'=>true)));?>
			<?php echo $this->Html->link("&nbsp;", $news['News']['url'],array('escape'=>false,'class'=>"highslide", 'title'=>$news['News']['name'], 'style'=>"background: url(".$thumb.") center no-repeat;")); ?>    	
		</dt>
		<dd>
			<strong><?php echo $news['News']['name']; ?>&nbsp;</strong><br/>
			<span class="on_date"><?php echo $news['News']['on_date']; ?></span>			
		</dd>
		<dd>
			<?php echo $news['News']['content']; ?>
			&nbsp;
		</dd>
		<div class="clr"></div>

	</dl>
</div>

<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
<?php $this->Footpanel->install();?>
<div id="footpanel">
	<ul>
		<li><?php echo $this->Html->link(__('Home', true).'<small>'.__('Home', true).'</small>', array('plugin'=>'calendar','controller'=>'news','action'=>'index'),array('escape'=>false,'class'=>'home')); ?></li>
		<li><?php echo $this->Html->link(__('Add News', true).'<small>'.__('Add News', true).'</small>', 
			array('plugin'=>'calendar','controller'=>'news','action'=>'add'),
			array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_add.png)')); ?></li>					
		<li><?php echo $this->Html->link(__('Edit News', true).'<small>'.__('Edit News', true).'</small>', 
			array('plugin'=>'calendar','controller'=>'news','action'=>'edit',$news['News']['id']),
			array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_edit.png)')); ?></li>					
		<li><?php echo $this->Html->link(__('Delete News', true).'<small>'.__('Delete News', true).'</small>', 
			array('plugin'=>'calendar','controller'=>'news','action'=>'delete',$news['News']['id']),
			array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_delete.png)'),sprintf(__('Are you sure you want to delete # %s?', true), $news['News']['name'])); ?></li>					

	</ul>
</div>
<?php }?>